﻿using System;

namespace ElingOA6_Admin_DSJCJ.Model
{   

    /// <summary>
	/// Ad:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Ad
	{
		/// <summary>
		/// 构造函数
		/// </summary>
		public Ad()
		{
			FIsUse=1M;
			FAdHeight=0;
		}
		#region Model
		/// <summary>
        /// 广告编码
		/// </summary>
		public string FAdcd
		{
			set;
			get;
		}
		/// <summary>
		/// 公司编号
		/// </summary>
		public string FEntityNo
		{
			set;
			get;
		}
		/// <summary>
        /// 广告名称
		/// </summary>
		public string FAdName
		{
			set;
			get;
		}
		/// <summary>
        /// 广告性质
		/// </summary>
		public string FAdProp
		{
			set;
			get;
		}
		/// <summary>
        /// 广告数据类型
		/// </summary>
		public string FDataType
		{
			set;
			get;
		}
		/// <summary>
		/// 原来的地址
		/// </summary>
		public string FOldFileName
		{
			set;
			get;
		}
		/// <summary>
		/// 图片名称
		/// </summary>
		public string FSvrFileName
		{
			set;
			get;
		}
		/// <summary>
		/// 二进制数据
		/// </summary>
		public byte[] FAdContent
		{
			set;
			get;
		}
		/// <summary>
		/// 广告类型
		/// </summary>
		public string FAdType
		{
			set;
			get;
		}
		/// <summary>
		/// 广告地址
		/// </summary>
		public string FAdUrl
		{
			set;
			get;
		}
		/// <summary>
		/// 是否启用
		/// </summary>
		public decimal? FIsUse
		{
			set;
			get;
		}
		/// <summary>
		/// 宽
		/// </summary>
		public int? FAdWidth
		{
			set;
			get;
		}
		/// <summary>
		/// 高
		/// </summary>
		public int? FAdHeight
		{
			set;
			get;
		}
		#endregion Model


        /// <summary>
        /// 广告类型名字
        /// </summary>
        public string FAdPropName
        {
            get
            {
                switch (FAdProp)
                {
                    case "1":
                        return "浮动图标";
                    case "2":
                        return "图片/flash广告";
                    case "3":
                        return "对联广告(左)";
                    case "4":
                        return "对联广告(右)";

                }
                return "全屏广告";
            }
        }
        /// <summary>
        /// 广告数据类型名字
        /// </summary>
        public string FDataTypeName
        {
            get
            {
                return FDataType == "S" ? "系统数据" : "用户数据";
            }
        }



        public string Fadprop2 { get; set; }
        /// <summary>
        /// 左图片地址
        /// </summary>
        public string leftImageUrl { get; set; }
        /// <summary>
        /// 左图片宽度
        /// </summary>
        public int leftWidth { get; set; }
        /// <summary>
        /// 左图片高度
        /// </summary>
        public int leftHeight { get; set; }
        /// <summary>
        /// 左链接
        /// </summary>
        public string leftHRef { get; set; }
        /// <summary>
        /// 左target
        /// </summary>
        public string leftTarget { get; set; }
        /// <summary>
        /// 右图片地址
        /// </summary>
        public string rightImageUrl { get; set; }
        public int rightWidth { get; set; }
        public int rightHeight { get; set; }
        public string rightHRef { get; set; }
        public string rightTarget { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string hidCouPleZt = "0";

    }
}
